/**
* Copyright (c) 2022 Beijing Jiaotong University
* PhotLab is licensed under [Open Source License].
* You can use this software according to the terms and conditions of the [Open Source License].
* You may obtain a copy of [Open Source License] at: [https://open.source.license/]
* 
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* 
* See the [Open Source License] for more details.
* 
* Author: Zhenjie Wei
* Created: Mar. 23, 2023
* Supported by: National Key Research and Development Program of China
*/

@import './sys_message.scss';

@mixin phot-system-content-center {
    height: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    position: relative;
    .pui-tabs {
        flex-shrink: 0;
        width: 100%;
        height: 31px;
        border-top: 1px solid $border_light;
        border-right: 0;
        border-left: 0;
        .pui-tabs_content {
            background: $bg-home_light;
            height: 30px;
            .pui-tab {
                // padding: 0;
                margin: 0;
                &.active-tab {
                    &:nth-child(3) {
                        border-left: none !important;
                    }
                }
            }
        }
    }
    .preview-content {
        flex: 1;
        width: 100%;
        min-height: 0;
        position: relative;
        .content-null {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            height: 100%;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            .img {
                width: 188px;
                img {
                    width: 188px;
                }
            }
            .btn-list {
                padding-top: 50px;
            }
        }
        .canvas-list {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            &.show {
                z-index: 2;
            }
        }
        .file-content {
            height: 100%;
        }
    }
    .log-content {
        @include phot-system-content-message;
    }
}

@mixin phot-system-content-center-dark {
    .pui-tabs {
        border-bottom: 1px solid #fff;
        .pui-tabs_content {
            background: $bg-tool_dark;
            height: 30px;
            .pui-tab {
                &:hover {
                    .pui-tab_name {
                    }
                }
                &.active-tab {
                    &:nth-child(3) {
                    }
                }
            }
        }
    }
    .preview-content {
        .file-content {
        }
    }
    .log-content {
        @include phot-system-content-message-dark;
    }
}
